<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
    <title>审阅文件</title>
    <%@ include file="/WEB-INF/jsp/public/common.jspf" %>
        <link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath}/style/blue/jquery-ui.min.css" />
<script language="javascript"
	src="${pageContext.request.contextPath}/script/jquery-ui.min.js"></script>
	<link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/style/blue/forum.css" />
    <script type="text/javascript">
	 $(document).ready(function () {
			$('.show11').dialog({
				autoOpen : false,
				bgiframe : true,
				width : 400,
				height : 500,
				modal : true,
				buttons : {
					"返回" : function() {
						$(this).dialog("close");
					}
				}
			});
			
		$('.check').click(function() {
				var id=$(this).attr("id");
				$("#url11").attr("src", "messageQuene_check.action?id="+id);
				$('.show11').dialog({
					title : "审批意见"
				});
				$('.show11').dialog('open');
				return false;
			});
	 }); 
    </script>
    
</head>
<body>

<div id="Title_bar">
    <div id="Title_bar_Head"> 
        <div id="Title_Head"></div>
        <div id="Title"><!--页面标题-->
            <img border="0" width="13" height="13" src="${pageContext.request.contextPath}/style/images/title_arrow.gif"/> 审阅文件
        </div>
        <div id="Title_End"></div>
    </div>
</div>

<div id="MainArea">
    <table cellspacing="0" cellpadding="0" class="TableStyle">
       
        <!-- 表头-->
        <thead>
            <tr align=center valign=middle id=TableTitle>
                <td width="100">文件名</td>
                <td width="100">文件类型</td>
                <td width="100">创建者</td>
                <td width="100">创建时间</td>
                <td width="200">可见部门</td>
                <td>查看详情</td>
            </tr>
        </thead>
        
        <!--显示数据列表-->
        <tbody id="TableData" class="dataContainer" datakey="userList">
        
        <s:iterator value="#messageQueneInfoList">
            <tr class="TableDetail1 template">
                <td>${rdfileName}&nbsp;</td>
                <td>
                <c:if test="${rdfileType == 0}">文章</c:if>
                <c:if test="${rdfileType == 1}">附件</c:if>
                &nbsp;
                </td>
                <td>${sendName}&nbsp;</td>
                <td>${sendTime}&nbsp;</td>
                <td>${deparmentsName}&nbsp;</td>
                <td>
                    <s:a action="rdfile_view?rid=%{rdfileId}">查看文件</s:a>
					<a href="#" class="check" id="${id}">审批</a>
                </td>
            </tr>
        </s:iterator> 
            
        </tbody>
    </table>
    
</div>
<div class="show11" title="增加区域" style="display:none">
		<iframe id="url11" width="400" height="500" frameborder="no"
			scrolling="no"></iframe>
	</div>
</body>
</html>
